<template>
<!--  意向项目-->
  <div>
    <el-table :data="participate" :header-cell-style="{backgroundColor: '#e7f6f3'}" @row-click="(row)=>{onClick(row,{name: '项目档案',value: 'xmda'})}"
              style="padding: 10px 20px;height: 237px;overflow: auto;">((e)=>{changes(e,3)})
      <el-table-column type="selection" width="55"></el-table-column>
      <el-table-column prop="workName" label="项目名称" show-overflow-tooltip></el-table-column>
      <el-table-column prop="planEnd" label="项目类型" show-overflow-tooltip></el-table-column>
      <el-table-column prop="schedule" label="项目负责人" show-overflow-tooltip></el-table-column>
      <el-table-column prop="status" label="项目部门" show-overflow-tooltip></el-table-column>
      <el-table-column prop="unit" label="所属单位" show-overflow-tooltip></el-table-column>
      <el-table-column prop="operation" label="操作" width="150px">
        <template slot-scope="scope">
          <el-button type="primary" plain @click.native.stop="onClick(scope.row,{name: '项目立项',value: 'xmlx'})">项目立项</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "intendedProject",
  data(){
    return{
      participate:[
        {workName:'风光一体化防沙治沙',planEnd:'防沙治沙',schedule:'李XX',status:'防沙治沙部门',unit:'防沙治沙单位'},
        {workName:'三北六期',planEnd:'植树造林',schedule:'王XX',status:'植树造林部门',unit:'三北六期绿化改造'},
        {workName:'蚂蚁森林',planEnd:'绿化改造',schedule:'朱XX',status:'绿化改造部门',unit:'蚂蚁森林苗木栽培'},
        {workName:'蓝旗机器人造林',planEnd:'机器人造林',schedule:'赵XX',status:'机器人造林部门',unit:'蓝旗机器人造林'},
      ]
    }
  },
  methods:{
    onClick(row, param){
      param.row = row
      this.$emit('showFormModal',param)
    }
  }
}
</script>

<style scoped>

</style>
